#include "TicketProxy.h"
#include <QDebug>

#include "UI/ModRun/Output/FactoryOutput.h"

TicketProxy::TicketProxy(std::shared_ptr<InterFaceTicket> ticket)
{
    m_pTicket = ticket;
}

TicketProxy::~TicketProxy()
{

}

void TicketProxy::TicketSales()
{
    if (m_pTicket)
    {
        m_pTicket->TicketSales();
        TicketSong();
    }
}


//送票上面服务;
void TicketProxy::TicketSong()
{
    QString strOutput = "TicketProxy::TicketSong:代理送票上门";
    qDebug() << strOutput;
    std::shared_ptr<IOutput> pOutPut = FactoryOutput::GetInstance()->CreateRunOutput();
    if (pOutPut)
    {
        std::initializer_list<QString> outList{ strOutput };
        pOutPut->OutPut(outList);
    }
}

